// import * as echarts from 'echarts';
$(function() {
    var chartDom = document.getElementById('main');
    var myChart = echarts.init(chartDom);
    var option;

    option = {
        xAxis: {

            type: 'category',
            data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
        },

        yAxis: {
            name: 'ADR数值',
            type: 'value',
            min: 0, // 设置y轴刻度的最小值
            splitNumber: 9, // 设置y轴刻度间隔个数
            axisLine: {
                lineStyle: {
                    // 设置y轴颜色
                    color: 'black'
                }
            },
        },
        series: [{
            data: [150, 230, 224, 218, 135, 147, 260],
            type: 'line'
        }],
        tooltip: {
            trigger: 'item'
        },
        toolbox: {
            feature: {
                saveAsImage: {} //下载工具
            }
        },




    };

    option && myChart.setOption(option);


})